﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace MicropleSoft.Controls.ComplexControl
{
    public partial class CCalcEdit : CBaseComplexControl, IComplexDataBinder
    {
        public CCalcEdit()
        {
            InitializeComponent();
        }

        public void ExcuteDataBinding(WmsApp.Library.IBaseDomainObject baseDomainObject)
        {
            this.xCalcEdit.ExcuteDataBinding(baseDomainObject);
        }

        public bool IsPrimaryKey
        {
            get
            {
                return xCalcEdit.IsPrimaryKey;
            }
            set
            {
                this.xCalcEdit.IsPrimaryKey = value;
            }
        }

        public bool ReadOnly
        {
            get
            {
                return this.xCalcEdit.ReadOnly;
            }
            set
            {
                this.xCalcEdit.ReadOnly = value;
            }
        }

        public string PropertyName
        {
            get
            {
                return this.xCalcEdit.PropertyName;
            }
            set
            {
                this.xCalcEdit.PropertyName = value;
            }
        }

        public object EditValue
        {
            get
            {
                return this.xCalcEdit.EditValue;
            }
            set
            {
                this.xCalcEdit.EditValue = value;
            }
        }
    }
}
